package com.singleton;

/**
 * 公共单例
 * 可以通过 new PubSingleton() 进行初始化
 *
 *
 * Created by wangg on 2017/12/10.
 */
public class PubSingleton {
    private static PubSingleton pubSingleton=null;

    public static PubSingleton getSingleton(){
        if(pubSingleton==null){
            return new PubSingleton();
        }
        return pubSingleton;
    }
}
